package zhtt01.mysql.utils;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

@Component("ymlUtils")
@ConfigurationProperties(prefix="systemcfg") //接收application.yml中的myProps下面的属性
public class YmlUtils {

    private String simpleProp;
    private Map<String, String> table = new HashMap<String, String>(); //接收prop1里面的属性值

    public Map<String, String> getTable() {
        return table;
    }

    public void setTable(Map<String, String> table) {
        this.table = table;
    }

    public String getSimpleProp() {
        return simpleProp;
    }

    public void setSimpleProp(String simpleProp) {
        this.simpleProp = simpleProp;
    }
}
